#include <iostream>
#include <fstream>
#include <string>

class VC2005SolutionCreator {
public:
    bool CreateSolution() {
        std::string slnContent = 
            "Microsoft Visual Studio Solution File, Format Version 9.00\n"
            "# Visual Studio 2005\n"
            "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"DevOpsPlatform\", \"DevOpsPlatform.vcproj\", \"{GUID}\"\n"
            "EndProject\n"
            "Global\n"
            "\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n"
            "\t\tDebug|Win32 = Debug|Win32\n"
            "\t\tRelease|Win32 = Release|Win32\n"
            "\tEndGlobalSection\n"
            "\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\n"
            "\t\t{GUID}.Debug|Win32.ActiveCfg = Debug|Win32\n"
            "\t\t{GUID}.Release|Win32.ActiveCfg = Release|Win32\n"
            "\tEndGlobalSection\n"
            "EndGlobal\n";
            
        std::ofstream file("DevOpsPlatform.sln");
        if (file.is_open()) {
            file << slnContent;
            file.close();
            std::cout << "Created VC++2005 solution: DevOpsPlatform.sln" << std::endl;
            return true;
        }
        return false;
    }
};

int main() {
    VC2005SolutionCreator creator;
    return creator.CreateSolution() ? 0 : 1;
}
